<div id="product-list" >
  <h1>Block Listing</h1>
  <table cellpadding="5" cellspacing="0" >
    <% for block in @blocks %>
      <tr valign="top">
      
        <td width="50%">
          <span class="list-title" ><%= block.name %></span>
        </td>
        
        <td>
          <%= block.content %>
        </td>
        
        <td>Visible? <%= block.visible? %></td>
        
        <td class="list-actions" >
          <%= link_to 'Up', {:action => :move_up, :id => block}, :confirm => "Are you sure", :method => "post" %><br/>
          <%= link_to 'Down', {:action => :move_down, :id => block}, :confirm => "Are you sure", :method => "post" %>
        </td>
      
        <td class="list-actions" >
          <%= link_to 'Edit', :action => 'update', :id => block %><br/>
          <%= link_to 'Destroy', { :action => 'delete', :id => block },
            :confirm => "Are you sure?" ,
            :method => "post" %>
        </td>
      </tr>
    <% end %>
  </table>
  <%= will_paginate @blocks %>
</div>
<br />
<%= link_to "New Block", :action => :create %>